package com.ali.gulimall.product.service;

import com.ali.gulimall.product.vo.AttrGroupRelationVo;
import com.ali.gulimall.product.vo.AttrGroupVO;
import com.ali.gulimall.product.vo.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ali.common.utils.PageUtils;
import com.ali.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author ali
 * @email 2916227265@qq.com
 * @date 2022-07-15 15:43:11
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deletRelation(AttrGroupRelationVo[] vos);

    List<AttrGroupVO> getAttrGroupWithAttersByCateloId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);

}

